﻿using System.Collections.Generic;
using System.Windows.Controls;

namespace Might.Infrastructure.View {
    public class MyRegionManager {
        private static readonly Dictionary<string, object> Regions = new Dictionary<string, object>();

        public static void Add(string name, object sv) {
            if (Regions.ContainsKey(name)) return;
            Regions.Add(name, sv);
        }

        public static object Get(string s) {
            return Regions.ContainsKey(s) ? Regions[s] : null;
        }
    }
}
